﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="vHCS.Account.LocalLogin" Codebehind="LocalLogin.aspx.cs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng nhập</title>      
    <link href="~/Styles/login.css" rel="stylesheet" type="text/css" />      
</head>
<body >
<form runat="server" id="form1">
 <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"  DestroyOnClose="true" Modal="true" Width="900" Height="600">  
    <AlertTemplate>
        <div class="rwDialogPopup radalert">   
            <div class="rwDialogText">{1}</div>
            <div>
                <a onclick="$find('{0}').close();" class="rwPopupButton" onkeypress="javascript:$find('{0}').close();" href="javascript:$find('{0}').close();">
                    <span class="rwOuterSpan">
                    <span class="rwInnerSpan">##LOC[OK]##</span>
                    </span>
                </a>    
            </div>
        </div>
    </AlertTemplate>

    <ConfirmTemplate>
        <div class="rwDialogPopup radconfirm">   
            <div class="rwDialogText">{1} </div>      
            <div>
                <a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:$find('{0}').close(true);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
                <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:$find('{0}').close(false);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
            </div>
        </div>
    </ConfirmTemplate>
</telerik:RadWindowManager>
<div class="loginWrapper">
    <div class="top">
        
        <asp:Label ID="Label3" CssClass="title" runat="server" Text="ĐĂNG NHẬP BẰNG TÀI KHOẢN CỦA HỆ THỐNG vHCS"></asp:Label>
    </div>
    <div class="middle">
        <table>
            <tr>
                <td class="bannerLeft">
                    
                    <div class="logo"><img src="../images/logo.jpg"</div>      
                    <div class="slogan">
                            <embed type="application/x-shockwave-flash" quality="High" bgcolor="White" allowscriptaccess="sameDomain" menu="false"
                                pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="Transparent" 
                                src="../images/tencty.swf" 
                                autostart="true" play="true" loop="true" 
                                width="357" 
                                height="40">
                            </embed>
                        </div>
                    <div class="login">
                            <asp:Label ID="Label4" runat="server" Text="Đăng nhập"></asp:Label>
                        </div>
                      
                    <div class="label">
                            <asp:Label ID="Label1" runat="server" Text="Tên đăng nhập"></asp:Label>
                        </div>
                    <div class="control">
                            <asp:TextBox ID="txtLocalUsername" Enabled="false" ReadOnly="true" Width="177px"  CssClass="txtboxReadOnly" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="txtLocalUsername" ErrorMessage="*" CssClass="validation" ValidationGroup="Login" ></asp:RequiredFieldValidator>
                        </div>
                    <div class="clear"></div>
                    <div class="label">
                            <asp:Label ID="Label2" runat="server" Text="Mật khẩu"></asp:Label>
                        </div>
                    <div class="control">
                             <asp:TextBox ID="txtLocalPassword" TextMode="Password" CssClass="txtbox" runat="server"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ErrorMessage="*" ControlToValidate="txtLocalPassword" ValidationGroup="Login" CssClass="validation"></asp:RequiredFieldValidator>
                        </div>
                   <div class="clear"></div>

                   <div class="label">&nbsp;</div>
                   <div class="divLoginButton">
                                <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" CssClass="btnLogin" ValidationGroup="Login"
                               onclick="btnLogin_Click" />
                    </div>
                    <div class="clear"></div>
                    <div class="remember">
                           <asp:CheckBox ID="chkRemember" Checked="false" Text="Ghi nhớ mật khẩu" runat="server" />
                           <asp:HyperLink CssClass="forgot" ID="lnkFogetPassword" NavigateUrl="~/Account/ForgetPassword.aspx" runat="server">Lấy lại mật khẩu</asp:HyperLink>
                        </div>
                </td>
                 <td class="bannerRight">
                    <embed type="application/x-shockwave-flash" quality="High" bgcolor="White" allowscriptaccess="sameDomain" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="Transparent" 
                        src="../images/bannerRight.swf" 
                        autostart="true" play="true" loop="true" 
                        width="359" 
                        height="275">
                    </embed>
                </td>
            </tr>
        </table>
       
    </div>
    <div class="loginFail">
            <asp:Label ID="lblLoginFail" Visible="false" runat="server" Text="Tài khoản đăng nhập không hợp lệ"></asp:Label>
    </div>
</div>
    <script type="text/javascript">
        var txtUsername = document.getElementById("<%=txtLocalUsername.ClientID %>");
        var txtPassword = document.getElementById("<%=txtLocalPassword.ClientID %>");
        if (txtUsername != null && txtUsername.disabled == false) txtUsername.focus();
        else if (txtPassword != null) txtPassword.focus();
    </script>
</form>
        


</body>
</html>
